package org.jeecg.modules.wlhy.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: hy_customer_company货主签约合同信息
 * @Author: jeecg-boot
 * @Date:   2021-01-17
 * @Version: V1.0
 */
@Data
@TableName("hy_customer_company")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_customer_company对象", description="hy_customer_company")
public class HyCustomerCompany implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**货主*/
	@Excel(name = "货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
	@Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @ApiModelProperty(value = "货主")
    private String customerId;
	/**公司*/
	@Excel(name = "公司", width = 15, dictTable = "hy_company", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "公司")
    private String companyId;
	/**合同*/
	@Excel(name = "合同", width = 15)
    @ApiModelProperty(value = "合同")
    private String imgContract;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    @ApiModelProperty(value = "服务费名称")
    private String costServiceName;

    @ApiModelProperty(value = "服务费比例")
    private BigDecimal costServicePercent;

    @ApiModelProperty(value = "服务费开票方式")
    private String costServiceType;

    @ApiModelProperty(value = "服务费是否开票(0不开票 1 开票)")
    private String izServiceOpenInvoicing;

//    @ApiModelProperty(value = "信息费是否开票(0不开票 1 开票)")
//    private String izInformationFeeOpenInvoicing;

    //快货运上报货主合同所需
    /**合同期自*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "合同期自")
    private Date expireStartTime;
    /**合同期至*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "合同期至")
    private Date expireEndTime;

    @ApiModelProperty(value = "合同编号")
    private String contractNumber;
}
